package edu.whu.notepal.service;

import edu.whu.notepal.pojo.PrivateChat;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author 陈磊
* @description 针对表【t_private_chat】的数据库操作Service
* @createDate 2022-12-02 20:27:25
*/
public interface PrivateChatService extends IService<PrivateChat> {

    void createPrivateChat(Long noteId,Long visitorId);

    void deletePrivateChat(Long noteId);

    List<PrivateChat> getChatById(Long id);

    Integer makeFriends(Long noteId, Long userId);

    Long getTheOther(Long noteId,Long fromUser);
}